<template>
  <div>
    <div>
      <el-table :data="users" >
        <el-table-column label="序号" prop="id" />
        <el-table-column label="开始加班日期" prop="startwork"/>
        <el-table-column label="停止加班日期" prop="stopwork"/>
        <el-table-column label="加班时长" prop="state"/>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  name: 'jiaban',
  data() {
    return {
      users: {},
    }
  },
  created () {
    const that = this
    this.axios.post('http://localhost:8001/queryWork')
        .then(function (response) {
          console.log(response)
          that.users = response.data
        })
  },
  methods: {

  }
}
</script>

<style scoped>

</style>
